---
title: Requiring two-factor authentication in your organization
---

import shared from '~/shared.js'

Organization owners can require organization members to enable two-factor authentication for their personal accounts, making it harder for malicious actors to access an organization's packages and settings

## About two-factor authentication for organizations

Two-factor authentication (2FA) is an extra layer of security used when logging into websites or apps. You can require all members in your organization to enable two-factor authentication on npm. For more information about two-factor authentication, see ["Configuring two-factor authentication"][configure-2fa].

<Note>

**Note:**

- When you require use of two-factor authentication for your organization, members who do not use 2FA will be removed from the organization and lose access to its packages. You can add them back to the organization if they enable two-factor authentication.
- An organization owner cannot opt-in to requiring 2FA for an organization if they do not have 2FA enabled on their account.
- If you are the member of an organization that requires 2FA you will not be able to disable 2FA until you leave that organization.

</Note>

## Prerequisites

Before you can require organization members to use two-factor authentication, you must enable two-factor authentication for your account on npm. For more information, see ["Configuring two-factor authentication"][configure-2fa].

Before you require use of two-factor authentication, we recommend notifying organization members and asking them to set up 2FA for their accounts. You can see if members already use 2Fa in the organizations members page.

## Requiring two-factor authentication in your organization

1. <>{shared['user-login'].text}</>

   <>{shared['user-login'].image}</>

2. <>{shared['account-settings'].text}</>

   <>{shared['account-settings'].image}</>

3. <>{shared['organization-selection'].text}</>

   <>{shared['organization-selection'].image}</>

4. <>{shared['organization-members-tab'].text}</>

   <>{shared['organization-members-tab'].image}</>

5. Click the **Enable 2FA Enforcement** button.

   <Screenshot src="/organizations/requiring-two-factor-authentication-in-your-organization/enable-2fa.png" alt="Screenshot of the enforce 2fa button" />

6. If prompted, read the information about members who will be removed from the organization. Type your organization's name to confirm the change, then click Remove members & require two-factor authentication.

   <Screenshot src="/organizations/requiring-two-factor-authentication-in-your-organization/removal-confirmation.png" alt="Screenshot of the removal confirmation prompt" />

7. If any members are removed from the organization, we recommend sending them an invitation that can reinstate their former privileges and access to your organization. They must enable two-factor authentication before they can accept your invitation.

## Helping removed members and outside collaborators rejoin your organization

If any members are removed from the organization when you enable required use of two-factor authentication, they'll receive an email notifying them that they've been removed. They should then enable 2FA for their personal account, and contact an organization owner to request access to your organization.

[configure-2fa]: configuring-two-factor-authentication
